passive-interface command is used to block RIP broadcasts on an interface connected to a subnet of a RIP-enabled network. In simple words, Passive-interface command is used in all routing protocols to disable sending updates out from a specific interface. A RIP Passive Interface in a nut shell prevents the RIP routing process from sending multicast/broadcast updates out a specified interface. A RIP Passive interface however does not block unicast updates. Keep in mind a Passive Interface DOES NOT block multicast/broadcast updates therefore the router would still process received RIP updates
| Tasks: Configure IP addresses as per diagram Configure Rip on all networks Configure R3 Fast Ethernet 0/0 interface to start Rip unicast Debug by using following commands. show ip route show ip route rip sh ip protocol debug ip rip events debug ip rip database
|
! R1 Configuration
interface Loopback0 ip address 20.1.2.1 255.255.255.255
interface FastEthernet0/0 ip address 1.1.1.10 255.255.255.0 no shut
router rip version 2 network 1.0.0.0 network 20.0.0.0 no auto-summary
! R2 Configuration
interface Loopback0 ip address 20.1.1.1 255.255.255.255
interface FastEthernet0/0 ip address 1.1.1.20 255.255.255.0 no shut
router rip version 2 network 1.0.0.0 network 20.0.0.0 no auto-summary
! R3 Configuration
interface Loopback0 ip address 30.1.1.1 255.255.255.255
interface Loopback1 ip address 30.1.2.1 255.255.255.255
interface FastEthernet0/0 ip address 1.1.1.30 255.255.255.0 no shut
router rip version 2 passive-interface FastEthernet0/0 network 1.0.0.0 network 30.0.0.0 neighbor 1.1.1.20 no auto-summary
| Explanation
Configuring Passive interface on F0/0 of Router 3
|
Requirement:
- Configure IP addresses as given
- Configure discontigeous networks on router 1 and router 3 loopback 0.
- Run Rip version 1 on all routers
- Check if both Discontigeous networks are reachable from router 6. We will ping both networks and you will see results.
Router 1 configuration
R1(config)#interface Loopback0 R1(config-if)# ip address 200.100.100.1 255.255.255.128
R1(config)#interface FastEthernet0/0 R1(config-if)#ip address 1.1.1.1 255.255.255.252 R1(config-if)# no shutdown
R1(config)#router rip R1(config-router)#version 1 R1(config-router)#network 1.0.0.0 R1(config-router)#network 200.100.100.0
Router 2 configuration
R2(config)# interface FastEthernet0/0 R2(config-if)#ip address 1.1.1.2 255.255.255.252 R2(config-if)# no shutdown
R2(config)# interface FastEthernet0/1 R2(config-if)#ip address 2.2.2.1 255.255.255.252 R2(config-if)#no shutdown
R2(config)# interface FastEthernet1/0 R2(config-if)#ip address 3.3.3.1 255.255.255.252 R2(config-if)#speed 100 R2(config-if)#duplex full R2(config-if)#no shutdown
R2(config)# router rip R2(config-router)#version 1 R2(config-router)#network 1.0.0.0 R2(config-router)#network 2.0.0.0 R2(config-router)#network 3.0.0.0
R1# show ip protocols
| Router 3 configuration
R3(config)#interface Loopback0 R1(config-if)# ip address 200.100.100.150 255.255.255.128
R3(config)#interface FastEthernet0/0 R3(config-if)# ip address 2.2.2.2 255.255.255.252 R3(config-if)#no shutdown
R3(config)#router rip R3(config-router)#version 1 R3(config-router)#network 2.0.0.0 R3(config-router)#network 200.100.100.0
Router 6 configuration
R6(config)#interface FastEthernet0/0 R6(config-if)#ip address 3.3.3.2 255.255.255.252 R6(config-if)# speed 100 R6(config-if)# full-duplex R6(config-if)#no shutdown
R6(config)# ip route 0.0.0.0 0.0.0.0 3.3.3.1
|
R2# Show ip route
Here we ping from Router 6 to R1 and R3 loopback interfaces ip addresses ( which are discontigeous). Let see results. From undermentioned ping images, we have found that ping to 200.100.100.150 is successful but ping to 200.100.100.1 is unsuccessful.
Here we have tried to find reason for different result of ping.
Ahaa !! Reason found.
In both cases, Router 2 is forwarding packets to 2.2.2.2 which is at fastethernet 0/1 by following routing table first entry and hence reach 200.100.100.150 but fail to reach 200.100.100.1.